package com.firesafe.inspection.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.firesafe.common.utils.PageUtils;
import com.firesafe.common.utils.Query;

import com.firesafe.inspection.dao.InspectionDao;
import com.firesafe.inspection.entity.InspectionEntity;
import com.firesafe.inspection.service.InspectionService;


@Service("inspectionService")
public class InspectionServiceImpl extends ServiceImpl<InspectionDao, InspectionEntity> implements InspectionService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<InspectionEntity> page = this.page(
                new Query<InspectionEntity>().getPage(params),
                new QueryWrapper<InspectionEntity>()
        );

        return new PageUtils(page);
    }

}